package com.sddr.config.observe;

import com.sddr.base.frame.observe.ConfigRuleObserve;
import lombok.AllArgsConstructor;

import java.util.List;

/**
 * @author 山顶洞人郑某
 * @className ConfigNotify.java 配置变更通知类
 * @date 2025 07 13
 */
@AllArgsConstructor
public class ConfigNotify {

    /**
     * 观察者集合
     */
    private final List<ConfigRuleObserve> configRuleObserveList;

    public void doNotify(String content) {
        for (final  ConfigRuleObserve configRuleObserve : configRuleObserveList) {
            configRuleObserve.notifyCinfigRule(content);
        }
    }
}
